package com.lianjinsu.shop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.lianjinsu.shop.entity.enums.Gender;
import lombok.Getter;
import lombok.Setter;
import org.apache.ibatis.type.Alias;

@Getter
@Setter
@TableName("user")
@Alias("User")
public class User extends Model<User> {
    private static final long serialVersionUID = -289396206339359786L;

    @TableId(type = IdType.INPUT)
    private String openid;

    @TableField("appid")
    private String appId;

    private Gender gender = Gender.UNKNOWN;

    private String sessionKey;

    private String nickName;

    private String avatarUrl;

    private String unionId;

    private Integer level;

    private Integer isOnline;

    private String phone;

    private String company;

    private String discount;
}
